import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import uView from "uview-ui";	
Vue.use(uView);
// 公共api
import $http from "@/utils/request.js";
// 公共方法wxApi
import wxApi from "@/utils/wxApi.js"

import * as api from '@/api/Api.js'
// 提示
import tools from '@/utils/common.js'
// 环境baseUrl
import config from '@/config/index.js'
// 时间戳
import time from "@/utils/time.js"
// vuex
import store from './store'

Vue.prototype.$config = config
Vue.prototype.$http = $http
Vue.api = Vue.prototype.$api = api
Vue.prototype.$tools = tools
Vue.prototype.$store = store
Vue.prototype.$T = time
Vue.prototype.$wxApi = wxApi
Vue.prototype.$imageHttp = 'https://pets.chunchuangkeji.com'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif